<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
-->
</style>

<script>
	function edit()
	{
		var id=document.getElementById("employeeid").value;
		this.location="${pageContext.request.contextPath }/info/toEditEmployee.action?employee.id="+id;
	}
</script>
</head>
<script>
function change(id)
{
	if(id==1)
	{
		document.getElementById('essential_information').style.display="block";
		document.getElementById('detailed_information').style.display="none";
	}
	else if(id==2)
	{
		document.getElementById('essential_information').style.display="none";
		document.getElementById('detailed_information').style.display="block";
	}
}
</script>
<body>
<div>
	<div style="width:300px;">
		<div align="center" style="float:left;border:solid;background=red" onclick="change(1)">基本信息</div>
		<div align="center" style="float:left;border:solid;background=red" onclick="change(2)">详细信息</div>
	</div>
	<br/>
	<div id="essential_information" style="display:block;" >
<table width="100%"  border="0">
  <tr>
    <td width="9%"><div align="center" class="STYLE6">基本信息</div></td>
    <td width="41%">&nbsp;</td>
    <td width="8%" class="STYLE5"></td>
    <td width="42%" class="STYLE5"></td>
  </tr>
  <tr>
  <td>个人照片：</td>
  <td colspan="3">
  </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">中文名：</div></td>
    <td>${employee.chineseName }</td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">英文名：</div></td>
    <td>${employee.englishName }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">性别：</div></td>
    <td>
	    <s:if test="employee.sex==1">男</s:if>
	    <s:elseif test="employee.sex==2">女</s:elseif>
	    <s:elseif test="employee.sex==0">&nbsp;</s:elseif>
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">部门：</div></td>
    <td>
    	${employee.departmentName }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">职务：</div></td>
    <td>
    	${employee.dutyName }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">用户简码：</div></td>
    <td>
    	${employee.brevityCode }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">英文名字：</div></td>
    <td>
    	${employee.englishName }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">岗位：</div></td>
    <td>
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">上级领导：</div></td>
    <td>
    	${employee.leaderName }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">邮箱容量：</div></td>
    <td>
    	${employee.hardDiskCapacity }MB
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">上传文件容量：</div></td>
    <td>
    	${employee.infoCapacity }MB
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">短信条数：</div></td>
    <td>
    	${employee.messageCapacity }条
    </td>
  </tr>
  <tr class="STYLE5">
    <td colspan="4"><div align="center">
      <hr />
    </div></td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">个性签名：</div></td>
    <td>
    	${employee.sign }
    </td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">个人简介：</div></td>
    <td colspan="3">
    	${employee.resume }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">商务电话：</div></td>
    <td>
    	${employee.businessPhone }
    </td>
    <td><div align="center">传真：</div></td>
    <td>
    	${employee.fax }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">分机号：</div></td>
    <td>
    	${employee.extensionNumber }
    </td>
    <td><div align="center">住宅电话：</div></td>
    <td>
    	${employee.homePhone }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">移动电话：</div></td>
    <td>
    	${employee.telphone }
    </td>
    <td><div align="center">电子邮箱：</div></td>
    <td>
    	${employee.email }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">合同试用期：</div></td>
    <td>
    	${employee.testCycle }
    </td>
    <td><div align="center">合同到期时间：</div></td>
    <td>
    	${employee.contractEndTime }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">办公地点：</div></td>
    <td>
    	${employee.office }
    </td>
    <td><div align="center">职称：</div></td>
    <td>
    	${employee.jobTitle }
    </td>
  </tr>
  
</table>
	</div>
	<div id="detailed_information" style="display:none;">
	<table width="100%"  border="0">
  <tr>
    <td width="10%"><div align="center" class="STYLE6">详细信息</div></td>
    <td width="38%">&nbsp;</td>
    <td width="14%"></td>
    <td width="38%">&nbsp;</td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">学历：</div></td>
    <td>
    	${employeedetails.education }
    </td>
    <td><div align="center">出生日期：</div></td>
    <td>
    	${employeedetails.birthday }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">QQ：</div></td>
    <td>
    	${employeedetails.qq }
    </td>
    <td><div align="center">专业：</div></td>
    <td>
		${employeedetails.speciality }
	</td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">毕业院校：</div></td>
    <td>
		${employeedetails.graduationSchool }
	</td>
    <td><div align="center">婚姻状态：</div></td>
    <td>
    <s:if test="employeedetails.isMarry==1">已婚
    </s:if>
    <s:elseif test="employeedetails.isMarry==0">未婚
    </s:elseif>
    <s:else>&nbsp;
    </s:else>
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">籍贯：</div></td>
    <td>
		${employeedetails.nativePlace }
	</td>
    <td><div align="center">民族：</div></td>
    <td>
		${employeedetails.nation }
	</td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">参加工作日期：</div></td>
    <td>
    	${employeedetails.joinWorkDay }
    </td>
    <td><div align="center">入职日期：</div></td>
    <td>
    	${employeedetails.onBoardDay }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">有无离职证明：</div></td>
    <td>
    <s:if test="employeedetails.isDimission==1">有
    </s:if>
    <s:else>无
    </s:else>
    </td>
    <td><div align="center">工段：</div></td>
    <td>
    	${employeedetails.process }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">人员性质：</div></td>
    <td>
    	${employeedetails.propertyId }
    </td>
    <td><div align="center">身份：</td>
    <td>
    	${employeedetails.identity }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">政治面貌：</div></td>
    <td>
    	${employeedetails.politicalStatus }
    </td>
    <td><div align="center">入党团时间：</div></td>
    <td>
    	${employeedetails.joinPartyDay }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">户口性质：</div></td>
    <td>
    <s:if test="employeedetails.residenceProperty==1">城镇户口
    </s:if>
    <s:else>农村户口
    </s:else>
    </td>
    <td><div align="center">户口所在地：</div></td>
    <td>
    	${employeedetails.residencePlace }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">身份证号：</div></td>
    <td>
    	${employeedetails.identification }
    </td>
    <td><div align="center">身份证签发机关：</div></td>
    <td>
    	${employeedetails.issuingAuthority }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">护照号码：</div></td>
    <td>
    	${employeedetails.passport }
    </td>
    <td></td>
    <td>&nbsp;</td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">身份证住址：</div></td>
    <td>
    	${employeedetails.identificationAddress }
    </td>
    <td><div align="center">身份证住址邮编：</div></td>
    <td>
    	${employeedetails.identificationPostCode }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">家庭住址：</div></td>
    <td>
    	${employeedetails.homeAddress }
    </td>
    <td><div align="center">家庭地址邮编：</div></td>
    <td>
    	${employeedetails.homePostCode }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">现居住地址：</div></td>
    <td>
    	${employeedetails.nowAddress }
    </td>
    <td>现居住地址邮编：</td>
    <td>
    	${employeedetails.nowPostCode }
    </td>
  </tr>
  <tr class="STYLE5">
    <td colspan="4">&nbsp;</td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">暂住证号码：</div></td>
    <td>
    	${employeedetails.temResiPermitNo }
    </td>
    <td>暂住证有效期：</td>
    <td>
    	${employeedetails.temResiPermitDate }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">保险卡号：</div></td>
    <td>
    	${employeedetails.insuranceCardNo }
    </td>
    <td><div align="center">工资卡号：</div></td>
    <td>
    	${employeedetails.cardNo }
    </td>
  </tr>
  <tr class="STYLE5">
    <td><div align="center">个人特长爱好：</div></td>
    <td colspan="3">
    	${employeedetails.hobby }
    </td>
  </tr>
</table>
</div>
<div>
<s:if test="editPower!=null">
<table>
	<tr>
		<td>&nbsp;</td>
		<td>
			<input type="hidden" name="employee.id" id="employeeid" value="${publicinformation.id }" />
			<input type="button" value="编辑" onclick="edit()" />
		</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
</table>
</s:if>
</div>
</div>
</body>
</html>